package com.propertree.mailer.config;

import com.propertree.mailer.bean.EmailAttributesConfiguration;
import com.propertree.mailer.bean.MailPublisherConfiguration;
import com.propertree.mailer.bean.SenderReceiverConfig;

public class MailerConfigContainer {
	private static final MailerConfigContainer mailerConfigContainer = new MailerConfigContainer();

	private final SenderReceiverConfig senderReceiverConfig;
	private final EmailAttributesConfiguration emailAttribConfig;
	private final MailPublisherConfiguration mailPubConfig;

	private MailerConfigContainer() {
		senderReceiverConfig = SenderReceiverConfig.getInstance();
		emailAttribConfig = EmailAttributesConfiguration.getInstance();
		mailPubConfig = MailPublisherConfiguration.getInstance();
	}

	public static MailerConfigContainer getInstance() {
		return mailerConfigContainer;
	}

	public SenderReceiverConfig getSenderReceiverConfig() {
		return senderReceiverConfig;
	}

	public EmailAttributesConfiguration getEmailAttribConfig() {
		return emailAttribConfig;
	}

	public MailPublisherConfiguration getMailPubConfig() {
		return mailPubConfig;
	}

}
